{:W('Nav',array('name'=>'订单详细信息'))}
<script type="text/javascript" src="__PUBLIC__/Js/js/utils.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/js/listtable.js?v=1.0"></script>
<link href="__PUBLIC__/Js/js/calendar/calendar.css" rel="stylesheet" type="text/css"/>
<!-- 订单列表 -->
<div class="list-div" id="listDiv">
    <table cellpadding="3" cellspacing="1" style="font-weight: 900;color: #000">
        <tr>
            <th colspan="4">基本信息</th>
        </tr>
        <tr>
            <td width="25%">订单号：</td>
            <td align="right">{$orderInfo.order_sn}</td>
            <td width="25%">订单状态：</td>
            <td width="25%">{$orderInfo.order_status}</td>
        </tr>
        <tr>
            <td>支付方式：</td>
            <td>{$orderInfo.payment.name}</td>
            <td>下单时间：</td>
            <td>{$orderInfo.add_time|date='Y-m-d H:i:s',###}</td>
        </tr>
        <tr>
            <td>支付状态：</td>
            <td>{$orderInfo.pay_status}</td>
            <td>支付时间：</td>
            <td><if condition='$orderInfo.pay_status eq "已支付"'>{$orderInfo.pay_time|date='Y-m-d H:i:s',###}</if></td>
        </tr>
        <tr>
            <td>收货人：</td>
            <td>{$orderInfo.consignee_name}</td>
            <td>联系电话：</td>
            <td>{$orderInfo.telephone}</td>
        </tr>
        <tr>
            <td>收货地址：</td>
            <td  style="color: blue"><span onclick="listTable.orderEdit(this,'{:U(GROUP_NAME.'/Order/runEdit')}', 'num', 1)">{$orderInfo.consignee_address}</span></td>
            <td>门店地址：</td>
            <td>{$orderInfo.store.address}</td>
        </tr>
        <tr>
            <td>配送方式：</td>
            <td>{$orderInfo.shipping.name}</td>
            <td>总额：</td>
            <td>{$orderInfo.total} 元</td>
        </tr>
        <tr>
            <td>备注：</td>
            <td colspan="3" style="text-align: left">&nbsp;&nbsp;&nbsp;{$orderInfo.remark}</td>
        </tr>
    </table>
    <!-- 分页 -->
    <div class="mask-black" id="Mask" style="display:none"></div>
    <!--遮罩-->
</div>
<br>
<div class="list-div">
    <table cellpadding="3" cellspacing="1" style="font-weight: 900;color: #000">
        <tr>
            <th colspan="3">商品信息</th>
        </tr>
        <tr>
            <td width="25%">商品名</td>
            <td width="25%">货号</td>
            <td width="25%">数量</td>
        </tr>
        <foreach name="orderInfo['order_goods']" item="v">
            <tr>
                <td>{$v.goods.name}</td>
                <td>{$v.goods.goods_sn}</td>
                <td>{$v.num}</td>
            </tr>
        </foreach>
    </table>
</div>


<script language="JavaScript">
    document.onmousemove = function (e) {
        var obj = Utils.srcElement(e);
        if (typeof(obj.onclick) == 'function' && obj.onclick.toString().indexOf('listTable.orderEdit') != -1) {
            obj.title = '点击修改内容';
            obj.style.cssText = 'background: #278296;';
            obj.onmouseout = function (e) {
                this.style.cssText = '';
            }
        }
        else if (typeof(obj.href) != 'undefined' && obj.href.indexOf('listTable.sort') != -1) {
            obj.title = '点击对列表排序';
        }
    }
</script>
</body>
</html>